|
Visual Studio 97
Microsoft Visual SourceSafe 5.0 Readme |
Home
|
© 1997 Microsoft Corporation
This document includes updated information for the documentation provided with Microsoft® Visual SourceSafe™ 5.0. The information in this document and in the Help system is more up-to-date than that in the online documentation.
Contents
Software Installation Information
(Administrator) Creating a Visual SourceSafe Installation on a ServerGeneral Notes and Tips
(Each User) Using NETSETUP to Create a Personal Installation
Using the Custom Setup Option
Upgrading a Previous SourceSafe Installation
Using the Installation Maintenance Program
Uninstalling Visual SourceSafe
WININET and MFC DLLs
SourceSafe on RISC
Back Up Your Visual SourceSafe Database and run ANALYZENew Features in Visual SourceSafe 5.0
Installing Two or More Visual SourceSafe Databases on One Computer
Loss of Network Connection Produces Numerical Error Message
Canceling a Client Setup
System Date/Time
Archive UtilityNotes for users of Visual SourceSafe 4.0
Visual Merge
Project Diff
"Edit" Command
Open Databases
Web Features
Exclusive Check Out
No 16-bit SupportVisual SourceSafe Home Page
Get --> Get Latest Version
Results Display
Multiple Project Support in Visual Basic/Visual C++ Integration
Update to Product Support Policy
The first step in installing Visual SourceSafe is the Server Setup: the Visual SourceSafe administrator creates the SourceSafe database on a network server that all users have access to, and adds all users to the Visual SourceSafe user list. At this point, all users can begin running Visual SourceSafe directly from the server, no further installation is required.
However, each user may wish to take a second step and do a personal Network Setup. This step improves performance and reduces network traffic, by copying the Visual SourceSafe executables to the user's hard drive. More importantly, this step registers Visual SourceSafe for direct integration into host environments such as Microsoft Visual Basic® (Enterprise and Professional Editions, versions 4.0 and above), Microsoft Visual C++® (versions 4.0 and above), Microsoft Access (requires the Office Developer Edition), Microsoft FrontPage™ (FrontPage 97 and above), Microsoft Visual J++™ (all versions), Microsoft "Internet Studio" (all versions), and Microsoft Visual FoxPro™ (versions 5.0 and above). The Visual SourceSafe integration into these environments will not work until the user has done a network or client setup.
The Visual SourceSafe Setup program can also be used to upgrade an existing Visual SourceSafe installation, or to perform maintenance (adding and removing components) on an existing installation.
(Administrator) Creating a Visual SourceSafe Installation on a Server
The first step in creating a new Visual SourceSafe installation, or upgrading an existing installation, is taken by the Visual SourceSafe administrator. Run SETUP.EXE program on the Visual SourceSafe disk. SETUP asks for the directory in which to install Visual SourceSafe. Choose a directory on your network, such as R:\VSS, that is accessible to everyone who will be using Visual SourceSafe. From the Setup options, choose the Server Setup option.
If you are creating a new Visual SourceSafe installation, an empty Visual SourceSafe database is created for you. Your next duty is to run the Visual SourceSafe Administrator's program and add all your users to the Visual SourceSafe user list. (The number of users that you can legally add to this list is based on the number of Visual SourceSafe licenses you have purchased.)
If you are upgrading an existing Visual SourceSafe installation, see Upgrading a Previous SourceSafe Installation.
After the successful completion of the Server Setup, your users are ready to begin running Visual SourceSafe, or to use NETSETUP to create their personal installations.
(Each User) Using NETSETUP to Create a Personal Installation
After an administrator has created a Visual SourceSafe installation on the server, users can perform a network setup. This step copies the Visual SourceSafe executables to your hard disk, pointing back to the central database on the server. It also creates shortcuts in your Start Menu, making it easier to run Visual SourceSafe. Most importantly, the network setup registers Visual SourceSafe on your computer, enabling direct integration of Visual SourceSafe menus into Integrated Development Environments (IDEs) such as Microsoft Visual Basic (Enterprise and Professional Editions, versions 4.0 and above), Microsoft Visual C++ (versions 4.0 and above), Microsoft Access (requires the Office Developer Edition), Microsoft FrontPage (FrontPage 97 and above), Microsoft Visual J++ (all versions), Microsoft "Internet Studio" (all versions), and Microsoft Visual FoxPro (versions 5.0 and above).
To perform a network setup, you do not need the Visual SourceSafe disk. Instead, go to the network location where the Visual SourceSafe server was installed by your administrator, and run NETSETUP.EXE. Specify a new directory on your computer's hard disk, such as C:\VSS, as the location of the Visual SourceSafe client.
After the successful completion of the network setup, you are ready to begin running Visual SourceSafe.
An alternative to the Network Setup is the Client Setup. Run SETUP.EXE from the Visual SourceSafe disk, and choose the "Client Setup" option. At the end of the Client Setup, you will be prompted to enter the network location of the Visual SourceSafe server installation created by your administrator. The end result of a Client Setup is exactly the same as the end result of a Network Setup, including registration for integration. However, the process is much slower, since it requires decompressing files from the disk. For this reason, NETSETUP is generally preferable.
You might see a "File not found" error message during the Network Setup procedure if the Visual SourceSafe server setup was installed by using the Custom Setup option. For example, the administrator installing Visual SourceSafe might have chosen not to install certain non-essential files, such as the help system or the online version of the User's Guide. In these cases, you can ignore the message and continue with the Network Setup. If any of the essential files, such as the Visual SourceSafe executable program or the database, are missing, contact your administrator.
When installing Visual SourceSafe to a server, you can choose the Custom Setup option. While not necessary for most users, this option is useful in circumstances such as the following:
You have limited disk space and want to save space by not installing certain options, such as the online documentation or the conversion utilities.
You want to have the "Server" and "Network" portions of Visual SourceSafe together in one installation. Custom Setup enables you to create the Visual SourceSafe database (as Server Setup does), register for IDE host integration (as Network Setup does), and copy the Visual SourceSafe executables (as both setups do), all in one step.
Upgrading a Previous SourceSafe Installation
If you have an older version of SourceSafe on your server, use the Visual SourceSafe Server Setup to install Visual SourceSafe 5.0 directly on top of the existing SourceSafe installation. Visual SourceSafe creates its new directory structure, converts your database to the new format if necessary, and installs the new executables so that you can run Visual SourceSafe 5.0 with all your existing users, projects, and files intact.
Notes about upgrading:
When SETUP detects that you already have an installation of the most recent version of Visual SourceSafe, it goes into "maintenance mode." This mode is designed to allow you to add or remove components, or to uninstall Visual SourceSafe.
The maintenance program provides the following choices when you run SETUP in a server environment:
Uninstalling Visual SourceSafe
To uninstall Visual SourceSafe (remove existing components or the Visual SourceSafe program and database itself), run the SETUP program from the SETUP directory, which is under the directory in which you installed the Visual SourceSafe server. This action displays the installation maintenance program. To remove the entire Visual SourceSafe program, click Remove All. Then follow the directions on the screen.
For the uninstall procedure to complete successfully, run the SETUP program on the same platform you used to install Visual SourceSafe. For example, run the SETUP program on Windows® 95 to uninstall Visual SourceSafe if you installed Visual SourceSafe on a Windows 95 system; run the SETUP program on Windows NT® if you installed Visual SourceSafe on a Windows NT system.
When you run the uninstall procedure, certain critical files are maintained to protect against accidental deletion. The \DATA directory is preserved, and if users have been added to the installation, the \USERS directories for users and files created by the SSADMIN program are also preserved. In addition, the SETUP directory, the SRCSAFE.INI file, the USERS.TXT file, and MSCREATE.DIR are preserved. All other files are deleted. If you run the uninstall procedure and find that you need to reinstall Visual SourceSafe, reinstall back to the same location. Only customizations to the SS.INI files for the guest and admin users are lost.
When you want to completely uninstall Visual SourceSafe, run the uninstall procedure. Then, from the command shell, use the DELTREE command to delete the directory in which you installed Visual SourceSafe and all the folders remaining under it.
Visual SourceSafe installs certain shared DLLs, such as MFC and WININET. When you install Visual SourceSafe, it may detect that you already have these files, and offer to overwrite them.
In most cases, the correct answer is no. Visual SourceSafe may be attempting to install files that are older than the ones you have. Or, Visual SourceSafe may be installing the U.S. English version of the files, when you have the version that is properly localized for your country. If you overwrite your existing files with the Visual SourceSafe files, your existing applications may not work properly, or may start displaying in U.S. English.
The only circumstance under which you should overwrite these files is if your copies are out of date. Visual SourceSafe 5.0 ships with a copy of WININET.DLL that shipped with Internet Explorer 3.0, and with MFC DLLs from Visual C++ version 4.0. If your files are older than these versions, you must allow Visual SourceSafe to install updated copies.
The Visual SourceSafe CD ships with versions for four different Windows NT platforms: Intel®, Alpha, MIPS, and PowerPC™. SETUP does not install all four, however, SourceSafe is only installed for the machine that you are running SETUP on.
Suppose, as an example, that you have some users on Intel and some on the PowerPC platform. What you must do, as an administrator, is run SETUP from an Intel machine, and then run it again from a PowerPC, choosing "Server Setup" both times. (SourceSafe will note the second time that you are installing over an existing version: do not worry, you will not lose any data!) Only after both installations will your users be able to run SourceSafe, or NETSETUP to their client machines, on both platforms.
Back Up Your Visual SourceSafe Database and Run ANALYZE
Before installing an upgrade to Visual SourceSafe, it is advisable to back up your previous Visual SourceSafe database. The upgrade process involves a major data conversion, which is irreversible in the case of problems.
Once Visual SourceSafe is installed, it is still advisable to back up your database on a regular basis. Note that all Visual SourceSafe backups should be full backups, not incremental or differential.
In addition to regular backups, it is advisable to run the ANALYZE program periodically, to check your Visual SourceSafe database for corruption. If corruption is found, the ANALYZE program can also be used to repair the problem. Updates to the ANALYZE tool are posted periodically to the Visual SourceSafe Web site, http://www.microsoft.com/ssafe. You may wish to check that site to see if there is a version of ANALYZE more recent than the one shipped with this product.
Installing Two or More Visual SourceSafe Databases on One Computer
The Visual SourceSafe installation was designed for one installation per computer. There might be occasions when you want to have two or more copies of Visual SourceSafe installed on your computer. This is difficult, however, since the second time you run SETUP to create a second server setup, the program goes into maintenance mode!
The solution is the REGEDIT program in Windows NT or Windows 95. Go to HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\MS SETUP (ACME)\TABLE FILES. You see two entries for Visual SourceSafe: SSADMIN.EXE, for the server installation from the CD-ROM, and SSEXP.EXE, for the network client setup. Delete these two entries and run SETUP again.
Loss of Network Connection Produces Numerical Error Message
If you are in the middle of a Visual SourceSafe session and lose your connection to a server over the network, the only message you see is a numerical message informing you of an unknown error. When you see, "unknown error - 20038," or something similar, you have lost your network connection. Restart Visual SourceSafe and continue your work.
When you choose the Client Setup option to install Visual SourceSafe, you must type a path for the Visual SourceSafe server directory. If you click Cancel in the Database Location dialog box, setup displays the following message in error, "Microsoft Visual SourceSafe 5.0 Setup was completed successfully." Disregard this message; the setup was not completed. Although a directory tree was created on your hard disk for the client, you cannot connect with the database on the server.
To correct this situation, edit the SRCSAFE.INI file in the local installation that you have just created. Add a line including the path to the SRCSAFE.INI file for the Visual SourceSafe database server in an #include statement. You can include a UNC path. For example:
#include \\SRCSERVR\PUBLIC\VSS\SRCSAFE.INI
Alternatively, you can include the path to a mapped drive. For example:
#include R:\VSS\SRCSAFE.INI
Visual SourceSafe uses the date/time which your local computer stores. If your computer is out of synchronization with another computer, unpredictable results may occur. For instance, you may check in a file after someone else, but SourceSafe may think your check-in happened first, because your system clock was off!
The best solution for this problem is to synchronize your local date/time with the network on a regular basis. This will ensure that all users are synchronized.
Microsoft Visual SourceSafe 5.0 includes many new features. Some of the highlights are:
The command-line utilities SSARC and SSRESTOR are the answers to the two most important features missing from SourceSafe 4.0.
Note that the archive utility requires administrator-level privileges to run. If you do not give the "ADMIN" user a SourceSafe password, any user can run the archive utility.
When you merge a file (due to multiple checkouts, or after a branch), what if there is a conflict, such as more than one user edited the same line of code? In Visual SourceSafe 4.0, you had to edit a text file and look for greater-than and less-than markers. In version 5.0, the visual merge gives you point-and-click control over the merging and conflict resolution process.
Click on a project, and then click "Difference." The dialog box shows you the differences between your current project in SourceSafe, and your working directory: nothing new there. But inside the dialog, you can now Get, Check Out, Check In, Add, Delete, and Diff files. In other words, project diff is now a whole new interface, designed to give you a graphical way of reconciling SourceSafe with your local directory!
You can now double-click on a file in the SourceSafe Explorer to edit that file in your working directory, instead of just viewing the file in SourceSafe.
Inside the SourceSafe Explorer, choose "Open SourceSafe Database" from the file menu to change your view to another SourceSafe database.
The new "Web" menu adds features specifically designed to help users who use Visual SourceSafe to manage HTML and other Web files.
If you configure SourceSafe to allow multiple checkouts in the Admin program, a user can still designate a particular checkout as "exclusive." An exclusive checkout is represented by a red border around the icon in the SourceSafe Explorer.
Note that when the administrator has disabled multiple checkouts, all checkouts are exclusive.
Users of Visual SourceSafe 4.x will note a number of major changes to the product. New features are listed separately above, but some of the important miscellaneous changes are listed below.
Versions 4 and earlier of Visual SourceSafe came with "16-bit versions" which could run in MS-DOS, Microsoft Windows 3.1, and Microsoft Windows for Workgroups. These versions are no longer built with Visual SourceSafe 5.0, or with any future versions. This means that Visual SourceSafe 5.0 will not run under DOS or Microsoft Windows 3.x. Windows 95 (or above) or Windows NT 3.51 (or above) is required.
Your 16-bit users can continue to use Visual SourceSafe 4.0a; the format of the SourceSafe database did not change between these two releases. These users will not have the benefit of the new version 5.0 features, but they will be able to continue working with your code. The "SS_16Bit" subdirectory on the SourceSafe CD contains executables that these users can work with. Note that you must have a license for every user on your system, whether he uses the 5.0 or 4.0 version of the product.
If users are running SourceSafe 4.0 directly from the server, your version 5.0 upgrade will overwrite their online help files. They will no longer be able to bring up context-sensitive help from within the SourceSafe Explorer.
The command previously referred to as "Get" is now called "Get Latest Version."
The results of a Visual SourceSafe command (for example, which files were retrieved after a Get operation) used to be displayed in the "results window," a floating dialog box which appeared, displayed information, and then disappeared. This has now been replaced with the "results pane," a permanent resident on the bottom of the Visual SourceSafe main screen (below the project tree and file list).
Multiple Project Support in Visual Basic/Visual C++ Integration
If you chose the "Prompt for Connect" option in Visual Basic or Visual C++ integration with Visual SourceSafe 4.0, you were given the opportunity to choose a SourceSafe database whenever you added a project to SourceSafe for the first time, or retrieved a project from SourceSafe for the first time. (If you have no idea what this paragraph is referring to, you can skip this note.) You specified a database by typing in a special string which went in your SRCSAFE.INI file after the Data_Path variable.
This ability is no longer supported in Visual SourceSafe 5.0, having been replaced with the (much friendlier) "Open Databases" dialog box. The new functionality is quite different from the old, because it involves choosing a SRCSAFE.INI file instead of a Data_Path line. Therefore, it may require some changes on your part to get the new system to work properly. These changes are described below.
Microsoft Visual SourceSafe has a home page on the internet. This home page features a variety of information including articles on SourceSafe, a self-running demo that you can download, a collection of helpful SourceSafe utilities, and much more. The URL for the home page is: http://www.microsoft.com/ssafe/.
Please note the following clarification of the support policy for this product.
If you need answers to your technical questions, Microsoft Primary Support provides complimentary, no-charge toll-charge phone support with a Microsoft technical engineer as follows: